package com.shy.configs.converts;

import com.shy.collect.entity.UserPayConfig;
import com.shy.configs.mvc.models.vo.UserPayConfigVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingConstants;
import org.mapstruct.Mappings;

import java.util.List;

@Mapper(componentModel = MappingConstants.ComponentModel.SPRING,uses = {ConvertHelper.class})
public interface UserPayConfigConvert {
List<UserPayConfigVo> convertPayConfigVoList(List<UserPayConfig> userPayConfigList);
@Mappings({
        @Mapping(source = "editTime",target = "editTime",dateFormat = "yyyy-MM-dd HH:mm:ss"),
        @Mapping(source = "autoSett",target = "autoSett",qualifiedByName = "transAutoSett")
})
    UserPayConfigVo mapUserPayConfigVo(UserPayConfig userPayConfig);
}
